package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MockQuestion implements Serializable {
    private String id;
    private String question;
    @TableField(exist = false)
    private List<Option> options;//七个问题
    //private String optionsStr;
    private Long created; //时间
    @TableField("mock_id")
    private String mockId;
//    public void optionsToStr(){
//        this.optionsStr= JSON.toJSONString(this.options);
//    }
//    public void optionsStrToOptions(){
//        this.options= JSON.parseArray(optionsStr,Option.class);
//    }
}
